#!/bin/bash
if [ -z $1 ];then
  echo "请输入文件名"
  exit
fi

awk -F 'INFO' '
BEGIN{}
/INFO/{
  split($0,arr," ")
  countArr[arr[3]]+=1
}

END{
  for (i in countArr) {
    print "total count["i"]: "countArr[i]
    req_num+=1
  }
  print "共请求 : "req_num" 秒"
}' $1
#$1 = /usr/wwwroot/flwtest/flw_docker/go_queue/src/queue/runtime/redis/2022-04-21.log




